    /*
     * 搜索字段类型定义与显示
     * 示例:     
     *  $test_select4_list_temp_arr=D('Sy/Game')->order('pid_number desc')->getField('pid_number,pid_name');
     *  $test_select4_list_arr=count($test_select4_list_temp_arr) && is_array($test_select4_list_temp_arr)?$test_select4_list_temp_arr:array();        
     *  $test_select4_options = [0=>'请选择'] + $test_select4_list_arr;       
     *  $return_search_field_dict =   array(
     *             'name'  =>  array('inType' => 'text','dataType'=>'varchar'),
     *             'test_online_time'  =>  array('inType' => 'datetime','dataType'=>'varchar'),
     *             'test_select1'  =>  array('inType' => 'select','dataType'=>'int','options'=>array('0'=>'请选择','5'=>'勤奋','6'=>'好学')),                                                       
     *             'test_select2'=>array('inType' => 'select','options'=>array(''=>'请选择','hot'=>'热门游戏','new'=>'新游'),'option_val_type'=>'char'),    
     *             'test_select3'  =>  array('inType' => 'select','dataType'=>'int','options'=>array('100'=>'请选择','0'=>'勤奋','1'=>'好学'),'default'=>100),      
     *             'test_select4'  =>  array('inType' => 'select','dataType'=>'int','options'=>$test_select4_options),       
     *  );     
     */
    public function searchFieldDict() {
        <volist name="tableInfoArray" id="tableInfo" key="k">
            <if condition="strpos($tableInfo['column_comment'],'@foreign_key_select@') !== false">
                <php>
                    $column_comment_arr=explode('@foreign_key_select@',$tableInfo[column_comment]);
                    $key_val_str=$column_comment_arr[1];
                    $key_val_temp_arr=explode(',',$key_val_str);
                </php>   
                ${$tableInfo[$columnNameKey]}_list_temp_arr=D('{$key_val_temp_arr[0]}')->order('{$key_val_temp_arr[1]} desc')->getField('{$key_val_temp_arr[1]},{$key_val_temp_arr[2]}');
                ${$tableInfo[$columnNameKey]}_list_arr=count(${$tableInfo[$columnNameKey]}_list_temp_arr) && is_array(${$tableInfo[$columnNameKey]}_list_temp_arr)?${$tableInfo[$columnNameKey]}_list_temp_arr:array();        
                ${$tableInfo[$columnNameKey]}_options = [0=>'请选择'] + ${$tableInfo[$columnNameKey]}_list_arr;        
            </if>
        </volist>    
        $return_search_field_dict =   array(
		    <volist name="tableInfoArray" id="tableInfo">
                <if condition="$tableInfo['column_key'] neq 'PRI'">
                    <if condition="!(($tableInfo[$columnNameKey] eq 'update_time') AND ($tableInfo['data_type'] eq 'datetime')) AND !(($tableInfo[$columnNameKey] eq 'add_admin_name') AND ($tableInfo['data_type'] eq 'varchar')) AND !(($tableInfo[$columnNameKey] eq 'add_admin_id') AND ($tableInfo['data_type'] eq 'int'))">
                        <if condition="($tableInfo[$columnNameKey] eq 'add_time') AND ($tableInfo['data_type'] eq 'datetime')">
                                '{$tableInfo[$columnNameKey]}'=>array('inType' => 'datetime','dataType'=>'varchar'),  
                        <else/>
                            <if condition="strpos($tableInfo['column_comment'],'@foreign_key_select@') !== false">
                                '{$tableInfo[$columnNameKey]}'=>array('inType' => 'select','dataType'=>'int','options'=>${$tableInfo[$columnNameKey]}_options),   
                            <elseif condition="strpos($tableInfo['column_comment'],':') !== false"/>
                                <php>
                                    $column_comment_arr=explode(':',$tableInfo[column_comment]);
                                    $key_val_str=$column_comment_arr[1];
                                    $key_val_temp_arr=explode(',',$key_val_str);
                                    $key_val_arr=[];
                                    foreach($key_val_temp_arr as $v){
                                        $temp_arr=explode('-',$v);
                                        $key_val_arr[$temp_arr[0]]=$temp_arr[1];
                                    }
                                </php>
                                <if condition="($tableInfo['data_type'] eq 'int') OR ($tableInfo['data_type'] eq 'tinyint') OR ($tableInfo['data_type'] eq 'enum')">
                                    '{$tableInfo[$columnNameKey]}'=>array('inType' => 'select','dataType'=>'int','options'=><if condition="!array_key_exists('0',$key_val_arr)">['0'=>'请选择']+<else/>['100'=>'请选择']+</if>$this->{$tableInfo[$columnNameKey]}_range_arr<if condition="array_key_exists('0',$key_val_arr)">,'default'=>100</if>),                                
                                <else/>
                                    '{$tableInfo[$columnNameKey]}'=>array('inType' => 'select','option_val_type'=>'char','options'=>[''=>'请选择']+$this->{$tableInfo[$columnNameKey]}_range_arr),
                                </if>                  
                            <else/>
                                '{$tableInfo[$columnNameKey]}'=>array('inType' => 'text','dataType'=>'varchar'),  
                            </if>
                        </if>
                        <php>echo "\r\n\t\t\t";</php>
                    </if>                    
                </if>
		    </volist>                                                               
        );

        return $return_search_field_dict;
    }    